#include "widget.h"
#include "ui_widget.h"
#include<QDebug>
#include<QFocusFrame>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    qDebug()<<ui->lineEdit->focusPolicy();
    ui->lineEdit->setFocusPolicy(Qt::NoFocus);
    ui->lineEdit_2->setFocusPolicy(Qt::TabFocus);
    ui->lineEdit_3->setFocusPolicy(Qt::ClickFocus);
    ui->lineEdit_4->setFocusPolicy(Qt::StrongFocus);
    Qt::FocusPolicy focuspolicy=Qt::WheelFocus;
    ui->lineEdit_5->setFocusPolicy(focuspolicy);

}

Widget::~Widget()
{
    delete ui;
}

